package com.moyun.finance.repository;

import com.moyun.finance.entity.AllType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface AllTypeRepository extends JpaRepository<AllType,String>, JpaSpecificationExecutor<AllType> {
    List<AllType> findByCompanyId(String companyId);
    List<AllType> findByCompanyIdAndType(String companyId, int type);
}
